package netty.rpc.framework.rpcserver;

import netty.rpc.framework.core.netty.transport.server.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication
public class ServerMain {

    public static void main(String[] args) {

        ConfigurableApplicationContext applicationContext = SpringApplication.run(ServerMain.class,args);
        NettyServer nettyServer = applicationContext.getBean("nettyServer", NettyServer.class);

        nettyServer.runServer();
    }


}
